var app = getApp() 
Page({

  /**
   * 页面的初始数据
   */
  data: {
    order_delivery_info:'',
    is_show_time: 1,
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this
    var key = wx.getStorageSync('key')
    var order_id = options.order_id
    var express_id = options.express_id
    var express_name = options.express_name
    var shipping_code = options.shipping_code
    if (key) {
      wx.request({
        url: app.configData.shop.api_url + '/shop/api/logistic.php?typ=json',
        method: 'GET',
        data: { k: key, order_id: order_id, express_id: express_id, shipping_code: shipping_code },
        header: {
          'content-type': 'application/json'
        },
        success: function (res) {
          console.log(res)
          that.setData({
            order_delivery_info: res.data.data,
            is_show_time: 0,
            express_name: express_name,
            shipping_code: shipping_code
          })
        }
      })
    } else {
      that.setData({
        is_show_time: 0
      })
    }
  },

  
})